package com.huarun.module.repair.bean;

import java.io.Serializable;
import java.util.Date;

public class RepairApply implements Serializable {
	private static final long serialVersionUID = 1L;
    private Integer id;

    private String workOrdersGuid;

    private String title;

    private String repairName;

    private String repairPhone;

    private String repairCompany;

    private String repairType;

    private String repairLocation;
    
    private String location;

    private String repairTime;
    
    private String endRepairTime;

    private String description;

    private String pic;

    private String status;

    private String createDate;

    private Date updateDate;
    
    private String[] files;
  
    public String getEndRepairTime() {
		return endRepairTime;
	}

	public void setEndRepairTime(String endRepairTime) {
		this.endRepairTime = endRepairTime;
	}

	public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getWorkOrdersGuid() {
        return workOrdersGuid;
    }

    public void setWorkOrdersGuid(String workOrdersGuid) {
        this.workOrdersGuid = workOrdersGuid == null ? null : workOrdersGuid.trim();
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title == null ? null : title.trim();
    }

    public String getRepairName() {
        return repairName;
    }

    public void setRepairName(String repairName) {
        this.repairName = repairName == null ? null : repairName.trim();
    }

    public String getRepairPhone() {
        return repairPhone;
    }

    public void setRepairPhone(String repairPhone) {
        this.repairPhone = repairPhone == null ? null : repairPhone.trim();
    }

    public String getRepairCompany() {
        return repairCompany;
    }

    public void setRepairCompany(String repairCompany) {
        this.repairCompany = repairCompany == null ? null : repairCompany.trim();
    }

    public String getRepairType() {
        return repairType;
    }

    public void setRepairType(String repairType) {
        this.repairType = repairType == null ? null : repairType.trim();
    }

    public String getRepairLocation() {
        return repairLocation;
    }

    public void setRepairLocation(String repairLocation) {
        this.repairLocation = repairLocation == null ? null : repairLocation.trim();
    }

    public String getRepairTime() {
        return repairTime;
    }

    public void setRepairTime(String repairTime) {
        this.repairTime = repairTime == null ? null : repairTime.trim();
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description == null ? null : description.trim();
    }

    public String getPic() {
        return pic;
    }

    public void setPic(String pic) {
        this.pic = pic == null ? null : pic.trim();
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status == null ? null : status.trim();
    }

    public String getCreateDate() {
        return createDate;
    }

    public void setCreateDate(String createDate) {
        this.createDate = createDate == null ? null : createDate.trim();
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        RepairApply other = (RepairApply) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getWorkOrdersGuid() == null ? other.getWorkOrdersGuid() == null : this.getWorkOrdersGuid().equals(other.getWorkOrdersGuid()))
            && (this.getTitle() == null ? other.getTitle() == null : this.getTitle().equals(other.getTitle()))
            && (this.getRepairName() == null ? other.getRepairName() == null : this.getRepairName().equals(other.getRepairName()))
            && (this.getRepairPhone() == null ? other.getRepairPhone() == null : this.getRepairPhone().equals(other.getRepairPhone()))
            && (this.getRepairCompany() == null ? other.getRepairCompany() == null : this.getRepairCompany().equals(other.getRepairCompany()))
            && (this.getRepairType() == null ? other.getRepairType() == null : this.getRepairType().equals(other.getRepairType()))
            && (this.getRepairLocation() == null ? other.getRepairLocation() == null : this.getRepairLocation().equals(other.getRepairLocation()))
            && (this.getRepairTime() == null ? other.getRepairTime() == null : this.getRepairTime().equals(other.getRepairTime()))
            && (this.getDescription() == null ? other.getDescription() == null : this.getDescription().equals(other.getDescription()))
            && (this.getPic() == null ? other.getPic() == null : this.getPic().equals(other.getPic()))
            && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
            && (this.getCreateDate() == null ? other.getCreateDate() == null : this.getCreateDate().equals(other.getCreateDate()))
            && (this.getUpdateDate() == null ? other.getUpdateDate() == null : this.getUpdateDate().equals(other.getUpdateDate()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getWorkOrdersGuid() == null) ? 0 : getWorkOrdersGuid().hashCode());
        result = prime * result + ((getTitle() == null) ? 0 : getTitle().hashCode());
        result = prime * result + ((getRepairName() == null) ? 0 : getRepairName().hashCode());
        result = prime * result + ((getRepairPhone() == null) ? 0 : getRepairPhone().hashCode());
        result = prime * result + ((getRepairCompany() == null) ? 0 : getRepairCompany().hashCode());
        result = prime * result + ((getRepairType() == null) ? 0 : getRepairType().hashCode());
        result = prime * result + ((getRepairLocation() == null) ? 0 : getRepairLocation().hashCode());
        result = prime * result + ((getRepairTime() == null) ? 0 : getRepairTime().hashCode());
        result = prime * result + ((getDescription() == null) ? 0 : getDescription().hashCode());
        result = prime * result + ((getPic() == null) ? 0 : getPic().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        result = prime * result + ((getCreateDate() == null) ? 0 : getCreateDate().hashCode());
        result = prime * result + ((getUpdateDate() == null) ? 0 : getUpdateDate().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", workOrdersGuid=").append(workOrdersGuid);
        sb.append(", title=").append(title);
        sb.append(", repairName=").append(repairName);
        sb.append(", repairPhone=").append(repairPhone);
        sb.append(", repairCompany=").append(repairCompany);
        sb.append(", repairType=").append(repairType);
        sb.append(", repairLocation=").append(repairLocation);
        sb.append(", repairTime=").append(repairTime);
        sb.append(", description=").append(description);
        sb.append(", pic=").append(pic);
        sb.append(", status=").append(status);
        sb.append(", createDate=").append(createDate);
        sb.append(", updateDate=").append(updateDate);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }

	public String[] getFiles() {
		return files;
	}

	public void setFiles(String[] files) {
		this.files = files;
	}

	public String getLocation() {
		return location;
	}

	public void setLocation(String location) {
		this.location = location;
	}
}